﻿// 文件名：内联函数inline
// 创建时间：2021/6/22/星期二 15:43:44

#include <iostream>
using namespace std;

inline double square(double x) { return x * x; }
int main()
{
	double a, b;
	double c = 13.12;
	a = square(5.12);
	b = square(4.51 + 7.15);
	cout << "a = " << a << endl;
	cout << "b = " << b << endl;
	cout << "square(c++) = " << square(c++) << endl;

	system("pause");
	return 0;
}